#pragma once
#include "VisibleComponent.h"

class Direct3D9API CPointSpriteComponent : public IVisibleComponent
{
private:	
	struct PointSprite {
		D3DXVECTOR3 position;
		D3DCOLOR color;
		static const DWORD FVF;
	};

public:
	CPointSpriteComponent(void);
	~CPointSpriteComponent(void);

	void Render() const;

private:
	void init();
	void preRender() const;
	void postRender() const;

private:
	FLOAT m_fSize;
	IDirect3DVertexBuffer9* m_pVB;
	IDirect3DTexture9* m_pTex;
};

